using System;

namespace WIT.Global;

/// <summary>
/// IP数据包
/// </summary>
public class IPPacket
{
	private string protocol;

	private string sourceIP;

	private int sourcePort;

	private string targetIP;

	private int targetPort;

	private byte[] receiveBuffer;

	private DateTime recTime = DateTime.Now;

	/// <summary>
	/// 协议
	/// </summary>
	public string Protocol
	{
		get
		{
			return protocol;
		}
		set
		{
			protocol = value;
		}
	}

	/// <summary>
	/// 源IP
	/// </summary>
	public string SourceIP
	{
		get
		{
			return sourceIP;
		}
		set
		{
			sourceIP = value;
		}
	}

	/// <summary>
	/// 源Port
	/// </summary>
	public int SourcePort
	{
		get
		{
			return sourcePort;
		}
		set
		{
			sourcePort = value;
		}
	}

	/// <summary>
	/// 目标IP
	/// </summary>
	public string TargetIP
	{
		get
		{
			return targetIP;
		}
		set
		{
			targetIP = value;
		}
	}

	/// <summary>
	/// 目标Port
	/// </summary>
	public int TargetPort
	{
		get
		{
			return targetPort;
		}
		set
		{
			targetPort = value;
		}
	}

	/// <summary>
	/// 数据包中数据字节流
	/// </summary>
	public byte[] ReceiveBuffer
	{
		get
		{
			return receiveBuffer;
		}
		set
		{
			receiveBuffer = value;
		}
	}

	/// <summary>
	/// 捕获时间
	/// </summary>
	public DateTime RecTime
	{
		get
		{
			return recTime;
		}
		set
		{
			recTime = value;
		}
	}
}
